package com.xuxin.baby.listener;

import android.view.View;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.ActivityUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.xuxin.baby.TestActivity;
import com.xuxin.baby.activity.SettingActivity;
import com.xuxin.baby.activity.UserCartActivity;
import com.xuxin.baby.activity.UserChildActivity;
import com.xuxin.baby.activity.UserCodeActivity;
import com.xuxin.baby.activity.UserCourseActivity;
import com.xuxin.baby.activity.ServiceActivity;
import com.xuxin.baby.activity.UserOrderActivity;
import com.xuxin.baby.activity.UserReportActivity;
import com.xuxin.baby.activity.VideoActivity;

/**
 * Created by xu_xin
 * Created on 2020.11.21 0021
 * 我的扩展功能
 */
public class OnUserExtendListener implements OnItemClickListener {
    @Override
    public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) {

        switch (position) {
            case 0:
                ActivityUtils.startActivity(UserCourseActivity.class);
                break;
            case 1:
                ActivityUtils.startActivity(UserChildActivity.class);
                break;
            case 2:
                ActivityUtils.startActivity(UserCartActivity.class);
                break;
            case 3:
                ActivityUtils.startActivity(UserOrderActivity.class);
                break;
            case 4:
                ActivityUtils.startActivity(UserReportActivity.class);
                break;
            case 5:
                ActivityUtils.startActivity(UserCodeActivity.class);
                break;
            case 6:
                ActivityUtils.startActivity(ServiceActivity.class);
                break;
            case 7:
                //ActivityUtils.startActivity(VideoActivity.class);
                ActivityUtils.startActivity(SettingActivity.class);
                //ActivityUtils.startActivity(TestActivity.class);
                break;
        }
    }
}